home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / str.exe / REGX.H < prev    next >
Text File  |  1993-03-01  |  776b  |  36 lines

  1. //
  2. // regx.h  : regular expression class interface
  3. // Author  : Roy S. Woll
  4. //
  5. // Copyright (c) 1992 by Roy S. Woll
  6. // You may distribute this source freely as long as you leave all files
  7. // in their original form, including the copyright notice as is.
  8. //
  9. // Version 2.01     12/10/92   Add copy constructor
  10. // Version 2.0      12/1/92
  11. //
  12. #ifndef _REGX_H
  13. #define _REGX_H
  14.  
  15. class regXimp;
  16.  
  17. class regX{
  18.    regXimp * imp;
  19.  
  20. public:
  21.    regX(void);
  22.    regX(const regX&);
  23.    regX(const char * regexp);
  24.    ~regX(void);
  25.    
  26.    regX& operator=(const char * regexp);
  27.    regX& operator=(const regX&);
  28.  
  29.    int index(const char * searchStr, int * matchLenPtr, 
  30.              int start=0, int p_caseSensitive=1) const;
  31.  
  32.    int error(void) const;
  33. };
  34.  
  35. #endif
  36.